-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission check fixed for the serviceaccount of the target allocator #3391
Permission check fixed for the serviceaccount of the target allocator #3391
Conversation
Is that the default service account the TA will use? |
Yes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! I'd love to see a test verifying that we call the function correctly. Changing the order of two string arguments in a function call is an easy mistake to make.
+1 to Mikolaj's suggestion though :) |
I'm wondering if it makes sense to include the serviceaccount name in the warning message?
@swiatekm @jaronoff97 wdyt? |
I've included the serviceaccount information in the warning messages ( |
Description:
Permission check fixed for the serviceaccount of the target allocator.
If the
opentelemetrycollector.spec.targetAllocator.serviceAccount
is not set, the operatorchecks the
system:serviceaccount:default:<EMPTY SA NAME>
serviceaccount instead of the generated serviceaccount name.This PR resolves this issue using the target allocator's serviceaccount naming logic.
Link to tracking Issue(s): 3380
Testing:
Documentation: